package model

import (
	"fmt"
	"travel-app/common/initialize"
)

func MysqlInits() {
	err := initialize.DB.AutoMigrate(&User{}, &UserReal{}, &Area{}, &Order{}, &Insurance{})
	if err != nil {
		fmt.Println("数据迁移失败")
		return
	} else {
		fmt.Println("数据迁移成功")
	}
}
